package com.wzx.common.pojo.resp;

import com.wzx.common.util.date.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/1/21 - 10:06
 * @description 标题
 */
@Data
@ApiModel(description = "响应结果信息状态码等", value = "PubInfo")
public class PubInfo implements Serializable {
    @ApiModelProperty(notes = "响应状态码", required = true)
    private Integer code;
    @ApiModelProperty(notes = "响应状态信息", required = true)
    private String message;
    @ApiModelProperty(notes = "响应时间", required = true)
    private String repTime;

    public PubInfo(String message, Integer code) {
        this.message = message;
        this.code = code;
        this.repTime = DateUtil.getDate();
    }

}
